package driver.nxt.action;

import driver.actions.TurnRightOnSpotAction;
import driver.exceptions.ExecuteException;
import driver.nxt.NXTController;

/**
 * Turns the NXT right on the spot
 * 
 * @author David Martin
 */
public class NXTTurnRightOnSpotAction extends TurnRightOnSpotAction
{

  private NXTController controller;

  /**
   * 
   * @param controller the NXT controller
   */
  public NXTTurnRightOnSpotAction(NXTController controller)
  {
    this.controller = controller;
  }

  /**
   * Instructs the controller to turn right on the spot
   * 
   * @throws driversuite.exceptions.ExecuteException
   */
  public void execute() throws ExecuteException
  {
    controller.turnRightOnSpot();
  }
}
